package bean;

import java.io.Serializable;

import common.ServerConfig;

/**
 * Created by ilioili on 2015/3/19.
 */
public class TopicNewsItem implements Serializable {
    //    {
    //        "id": "95b1a5e49f2c1d47be0d87267959d501",
    //            "title": "默克尔访日提醒安倍正视历史 日本人紧张",
    //            "time": "1425951840",
    //            "src": "http://news.sohu.com/20150310/n409566921.shtml",
    //            "keynode": "1",
    //            "img": ""
    //    },
    private String id;
    private String img;
    private String keynode;
    private String src;
    private long time;
    private String title;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        if (null == img || "".equals(img)) {
            this.img = "";
        } else {
            this.img = ServerConfig.PIC_HOST + img;
        }

    }

    public String getKeynode() {
        return keynode;
    }

    public void setKeynode(String keynode) {
        this.keynode = keynode;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time * 1000;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
